.class Lcom/waiqin365/lightapp/visit/hd;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 5

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->b(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    instance-of v0, v0, Lcom/waiqin365/lightapp/visit/b/l;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->b(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/l;

    invoke-virtual {v0, p3}, Lcom/waiqin365/lightapp/visit/b/l;->a(I)Lcom/waiqin365/lightapp/visit/b/k;

    move-result-object v1

    iget-object v0, v1, Lcom/waiqin365/lightapp/visit/b/k;->b:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->c(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/CalendarView;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/view/CalendarView;->c()Lcom/waiqin365/base/calendar/c/a;

    move-result-object v2

    if-eqz v2, :cond_0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->c(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/CalendarView;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/view/CalendarView;->c()Lcom/waiqin365/base/calendar/c/a;

    move-result-object v2

    iget v2, v2, Lcom/waiqin365/base/calendar/c/a;->d:I

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    const v3, 0x7f080557

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->c(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/CalendarView;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/view/CalendarView;->c()Lcom/waiqin365/base/calendar/c/a;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/base/calendar/c/a;->a:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    const v3, 0x7f080237

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :cond_0
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    const v3, 0x7f08064f

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v2, Landroid/content/Intent;

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->d(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v3, "isSub"

    const/4 v4, 0x1

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v3, "title"

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "userId"

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/k;->a:Ljava/lang/String;

    invoke-virtual {v2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "date"

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->e(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/hd;->a:Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->overridePendingTransition(II)V

    :cond_1
    return-void
.end method
